package org.adorsys.aderp.aderplogin.domain;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.ManyToMany;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaEntity
public class AderpClientData {

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<ClientRole> clientRoles = new HashSet<ClientRole>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<ClientResource> clientResources = new HashSet<ClientResource>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<ClientScope> clientScopes = new HashSet<ClientScope>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<AderpClientDetail> aderpClients = new HashSet<AderpClientDetail>();
}
